/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.ucb.game8numbers.tree;

/**
 *
 * @author JessicaLuanne
 */
public class PuzzleStateTree{

    private PuzzleStateTreeNode root;

    public PuzzleStateTree() {
        setRoot(null);
    }

    public int getDegree()
    {
        return getRoot() != null ? getRoot().getDegree() : 0;
    }

    public int getHeight()
    {
        return getRoot() != null ? getRoot().getHeight() : 0;
    }

    public PuzzleStateTreeNode getRoot() {
        return root;
    }

    public void setRoot(PuzzleStateTreeNode root) {
        this.root = root;
    }

}
